package ibmetp.mis.controller.resource;




import ibmetp.mis.service.ResourceService;
import ibmetp.mis.serviceImpl.ResourceServiceImpl;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ResourceDelServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public ResourceDelServlet() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#service(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		System.out.println("Calling ResourceDelServlet..");
		//用户Id数组
		String ResourceIds=request.getParameter("resourceId");
		System.out.println(ResourceIds);
		
		//删除用户
		if(ResourceIds!=null){
		System.out.println("Del deptIds:"+ResourceIds);
		ResourceService rs=new ResourceServiceImpl();
		rs.deleteByIds(ResourceIds);		
		}
	}

}


